/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
}

body {
    background-color: #ebf5fb;
}

/* Header */
header {
    background-color: #17415e;
    padding: 15px 0;
    color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 140px;
    height: auto;
    border-radius: 5px;
}



/* Menú responsive */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}


h1 {
    font-size: 1.6rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Navegación */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li {
    position: relative;
    transition: transform 0.3s ease;
}

nav ul li:hover {
    transform: translateY(-3px);
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
    padding: 10px 15px;
}

nav ul li a:hover {
    color: #ffcc00;
    text-shadow: 0px 0px 10px rgba(255, 204, 0, 0.8);
}




/* Responsividad */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #17415e;
        text-align: center;
        padding: 10px 0;
        display: none;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li a {
        display: block;
        padding: 12px;
        font-size: 1.2rem;
    }

    /* Menú abierto */
    nav.active {
        display: flex;
    }
}



/* Main */
main {
    padding: 60px 20px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    font-weight: bold;
}

/* Lista de formularios */
.form-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.form-list li {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.form-list li:hover {
    transform: translateY(-10px);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #0077b6;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    background-color: #0095e4;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #e6b800;
}

/* Sección de Anuncios Publicitarios */
.advertisement {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.advertisement h2 {
    color: #0077b6;
    margin-bottom: 15px;
}

.advertisement p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

.advertisement .anuncio {
    display: inline-block;
    margin: 10px;
    text-align: left;
}

.advertisement .anuncio img {
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
}

.advertisement .anuncio-info {
    margin-top: 10px;
}

/* Pie de página */
footer {
    background-color: #005f87;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
}

/* Responsividad */


/* Responsividad para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #17415e;
        text-align: center;
        padding: 10px 0;
        display: none;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
    }

    nav ul li a {
        display: block;
        padding: 12px;
        font-size: 1.2rem;
    }

    nav.active {
        display: flex;
    }

    .logo {
        width: 100px;
    }

    h2 {
        font-size: 2rem;
    }

    .form-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer p {
        font-size: 0.8rem;
    }
}

/* Responsividad para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    footer p {
        font-size: 0.7rem;
    }
}

/* Estilo para la sección de Anuncios Publicitarios */
.advertisement {
    background-color: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.advertisement h2 {
    color: #0077b6;
    margin-bottom: 15px;
}

.advertisement p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

/* Contenedor de anuncios */
.advertisement .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tres columnas en pantallas grandes */
    gap: 20px;
}

/* Estilo de cada anuncio */
.advertisement .anuncio {
    background: #f0f8ff; /* Color de fondo suave */
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.advertisement .anuncio:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.advertisement .anuncio img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.advertisement .anuncio-info {
    padding: 10px 0;
}

.advertisement .anuncio-info h3 {
    color: #0077b6;
    margin-bottom: 5px;
}

.advertisement .anuncio-info p {
    font-size: 0.9rem;
    color: #333;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .advertisement .container {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en pantallas medianas */
    }
}

@media screen and (max-width: 480px) {
    .advertisement .container {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
    }
}





/* RESPONSIVE DESIGN */
@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: 130px;
    }

    h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .servicio {
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #005f8b;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        padding: 10px;
    }

    nav.active {
        display: flex;
    }

    .logo {
        width: 100px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .servicio {
        width: 90%;
    }

    footer p {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    h1 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    #hero {
        padding: 80px 20px;
    }

    #hero h2 {
        font-size: 1.8rem;
    }

    .servicio {
        width: 95%;
    }

    footer p {
        font-size: 0.7rem;
    }
}


/* Mejoras para computadoras de escritorio grandes */
@media (min-width: 1200px) {
    .container {
        grid-template-columns: repeat(5, 1fr); /* Aseguramos que haya 5 columnas por fila */
        gap: 30px; /* Espaciado más amplio entre los anuncios */
    }

    .anuncio {
        width: 100%; /* Los anuncios ocupan todo el ancho disponible */
    }

    .anuncio img {
        height: 230px; /* Ajustamos la altura de los anuncios */
    }

    .anuncio-info {
        padding: 25px;
    }
}

/* Pantallas medianas (tablets, laptops) */
@media (max-width: 1199px) and (min-width: 768px) {
    .container {
        grid-template-columns: repeat(3, 1fr); /* 3 anuncios por fila */
        gap: 40px; /* Aumentamos el espacio entre los anuncios */
    }

    .anuncio img {
        height: 200px;
    }

    .anuncio-info {
        padding: 20px;
    }
}

/* Pantallas pequeñas (teléfonos móviles) */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* 2 anuncios por fila */
        gap: 30px; /* Espaciado más amplio */
    }

    .anuncio img {
        height: 180px;
    }
}

/* Pantallas muy pequeñas (móviles muy pequeños) */
@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr; /* 1 anuncio por fila */
    }

    .anuncio img {
        height: 160px;
    }
}


body {
    transform: none !important;
    opacity: 1 !important;
}


/*OPCIONES DE ENVIO*/

.opciones-envio {
    background-color: #f0f8ff; /* Fondo claro azulado */
    border-left: 5px solid #0077b6; /* Borde lateral azul SAPAM */
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.opciones-envio h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #023e8a;
    font-weight: bold;
}

.opciones-envio ul {
    list-style: none;
    padding-left: 0;
}

.opciones-envio ul li {
    margin-bottom: 12px;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    color: #333;
}

.opciones-envio ul li::before {
    content: '🔹';
    position: absolute;
    left: 0;
    color: #0077b6;
    font-size: 1.2rem;
    top: 0;
}







/*ENCABEZADO DEL FORMULARIO*/

.formulario-header {
    text-align: center;
    padding: 40px 20px 20px;

    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 0 10px rgba(0, 78, 146, 0.1);
  }
  
  .formulario-header h2 {
    color: #025e91;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }
  
  .formulario-header p {
    color: #333;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
  }
  


  .footer-bottom {
    background-color: #005f87; /* mantiene el fondo azul */
    color: white;              /* letras blancas */
    text-align: center;
    padding: 15px;
    margin-top: 50px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: white; /* asegúrate que el texto también tenga blanco */
}

